package com.swadar.helper;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.swadar.beans.valueobject.ProductVO;
import com.swadar.beans.valueobject.RecProductVO;
import com.swadar.dao.CommonDAO;

@Component
public class ProductPageHelper {

	@Autowired
	private CommonDAO commonDAO;
	
	public ProductVO getProduct(Integer productId){
		ProductVO productVO = commonDAO.getProductDetails(productId);
		return productVO;
	}
	
	public List<RecProductVO> getRecProduct(Integer productId){
		List<RecProductVO> recProductVOList = commonDAO.getRecProduct(productId);
		return recProductVOList;
	}
	
}
